-
Notifications
You must be signed in to change notification settings - Fork 189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Keyboard navigation #2671
Keyboard navigation #2671
Conversation
@SMillerDev, I tried to use https://www.npmjs.com/package/vue-shortkey in https://github.com/nextcloud/news/pull/2671/files to use the keyboard, seems quite ok, see (1). Is there a "current feed item" already, so I can try to find the previous and next item, see (2)? |
This is the current item: |
Jumping to the previous and next item kind of works, but I cannot use |
It's |
9d4d6c0
to
7c62718
Compare
@Grotax, @SMillerDev, any feedback so far? Keyboard navigation with j/k works fine for me. I wanted to scroll to the current item, but d21f1a7 didn't seem to do anything in the VirtualScroll. ️🤷🏻 And it would be great to introduce some different highlighting of the "active item" in the list. Haven't managed to do so. Any suggestions on the both or feedback to the current code? |
Didn't have time to look at it yet. |
Anything I can help with? |
Hi, looks good to me also tried it J/K works for me too. I have to say me and @SMillerDev have mostly only taken care of the backend. The frontend is kind of unmaintained. Which is why we hope to find someone that is willing to take care of the frontend long-term, to update it from time to time and slowly fix bugs. What I would like to see before we merge:
While at it you could maybe also rebase on top of master the changelog is conflicting now :) Thanks for working on this :) |
b723105
to
9bc3a18
Compare
9bc3a18
to
9ff0f77
Compare
I discarded the my squashed commit by accident in the GitHub interface, while I wanted to discard my commit in my master branch, that closed this PR and I can't reopen it 🙄 |
Hm, and now I can? |
add: make first attempt to jump to previous and next feed item fix: linter errors fix: use correct feed items fix: use filterSortedItems() add: trigger click event programmatically to benefit from item handling inside FeedItemRow component add: use a proper item if none is selected fix: remove not needed MUTATIONS import add: attempt to scroll to clicked item doc: add changelog text Signed-off-by: Patrizio Bekerle <patrizio@bekerle.com>
Squashed, signed off and rebased to the current master... |
There is a big mountain of missing stuff... 🗻 😅 |
Thank you! |
Changed - added alternative development environment (#2670) - Implement `j` and `k` keyboards shortcuts for navigating through feed items (#2671) - Implement `s`, `i` and `l` keyboards shortcuts for staring current feed item (#2677) - Implement `o` keyboards shortcut for opening the URL of current feed item (#2677) - Implement `u` keyboards shortcut for marking current feed item read/unread (#2677) - Implement highlighting of active feed item (#2677) Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
Changed - added alternative development environment (#2670) - Implement `j` and `k` keyboards shortcuts for navigating through feed items (#2671) - Implement `s`, `i` and `l` keyboards shortcuts for staring current feed item (#2677) - Implement `o` keyboards shortcut for opening the URL of current feed item (#2677) - Implement `u` keyboards shortcut for marking current feed item read/unread (#2677) - Implement highlighting of active feed item (#2677) Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
Hello, Thank you for the work with keyboard. Please to use it.
|
Thank you, I'll fix that. |
Should be fixed in #2689. |
Implements parts of #2480 and serves as basis for other keyboard shortcuts.
WORK IN PROGRESS!
TODO
j
/k
to navigate feed itemsOptional
Checklist